package com.aps.entity.domain.order;

import java.util.Date;

import javax.persistence.*;

import com.aps.entity.domain.BaseEntity;
import com.aps.entity.eunm.DishStatus;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author liaoguangan
 * @description <订单菜品>
 * @date 2018/4/1 15:11
 */
@Table(name = "aps_order_dish")
@Entity
@Data
@ApiModel
public class OrderDish extends BaseEntity {

    @Column
    @ApiModelProperty("菜品序号")
    private String dishSeq;

    @Column
    @ApiModelProperty("菜品代码")
    private String dishNum;

    @Column
    @ApiModelProperty("菜品数量")
    private Integer quty;

    @Column
    @ApiModelProperty("加工工序代码")
    private String dspReq;

    @Column
    @ApiModelProperty("订单号")
    private String orderNum;

    @Column
    @ApiModelProperty("是否HOLD菜")
    private Boolean holdSign;

    @Column
    @ApiModelProperty("开始时间")
    private Date startTime;

    @Column
    @ApiModelProperty("完成时间")
    private Date endTime;

    @Column
    @ApiModelProperty("特殊要求备注")
    private String comment;

    @Column
    @ApiModelProperty("状态")
    @Enumerated(EnumType.STRING)
    private DishStatus status;

    @Column
    @ApiModelProperty("是否指定先上")
    private Boolean isFirst;

    @Column
    //加工模块代码
    private String deviceModuleCode;

    @Column
    //预计结束时间
    private Date completeTime;

}
